Skip to content

Fix Psalm error for static analysis#308

Open
p123-stack wants to merge 1 commit into
mainfrom
fix-static-analysis
Open

Fix Psalm error for static analysis#308
p123-stack wants to merge 1 commit into
mainfrom
fix-static-analysis

Conversation

@p123-stack
Copy link
Copy Markdown
Collaborator

No description provided.

}
/** @var list<int> $ids */
$ids = $path->ids;
$ids = $path->indices;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful with this. Please confirm if our current minimum installable bolt version still uses ids instead of indices. In that case, we'll have to upgrade the minimum installable bolt version

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for flagging this — I checked the current constraint (^7.1.4) and confirmed the minimum installable bolt version still uses Path::$ids only. Path::$indices was added in 7.4.0, so using indices here would break 7.1.4–7.3.x unless we bump the minimum bolt version. I can either revert back to ids or bump the constraint to ^7.4.0, whichever you’d prefer.

@transistive
Copy link
Copy Markdown
Collaborator

transistive commented May 25, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants